package com.eastfair.notice.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.eastfair.core.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author liuxiaobai
 * @since 2021-08-30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CommentUpdateDTO", description = "")
public class CommentUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "请填写主键", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projectId;
    /**
     * 展会ID
     */
    @ApiModelProperty(value = "展会ID")
    private Long exhibitionId;
    /**
     * 父级ID
     */
    @ApiModelProperty(value = "父级ID")
    private Long parentId;
    /**
     * 回复人userId
     */
    @ApiModelProperty(value = "回复人userId")
    private Long userId;
    /**
     * 被回复人userId
     */
    @ApiModelProperty(value = "被回复人userId")
    private Long parentUserId;
    /**
     * 层级
     */
    @ApiModelProperty(value = "层级")
    @Size(max = 255, message = "层级长度不能超过255")
    private String code;
    /**
     * 所属业务类型
     */
    @ApiModelProperty(value = "所属业务类型")
    @Size(max = 32, message = "所属业务类型长度不能超过32")
    private String subjectType;
    /**
     * 所属业务ID
     */
    @ApiModelProperty(value = "所属业务ID")
    private Long subjectId;
    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    @Size(max = 65535, message = "回复内容长度不能超过65,535")
    private String content;
    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")
    private Integer isEnable;
    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")
    private Integer isDelete;
}
